<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>c++ | Matrix207&#39;s Blog</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Books
C++FAQS
Junior
(C++11)C++11 - 维基百科，自由的百科全书
(C++11)深入理解C++11：C++ 11新特性解析与应用 迷你
[C++标准程序库–自修教程与参考手册]
[C++程序设计原理与实践]
[C++程序设计语言 特别版]
[C++编程惯用法——高级程序员常用方法和技巧]
[C++编程规范-101条规则准则与最佳实践]
[C++语言的设计和演化]
[">
<meta property="og:type" content="article">
<meta property="og:title" content="c++">
<meta property="og:url" content="http://yoursite.com/2016/03/05/cplusplus/index.html">
<meta property="og:site_name" content="Matrix207's Blog">
<meta property="og:description" content="Books
C++FAQS
Junior
(C++11)C++11 - 维基百科，自由的百科全书
(C++11)深入理解C++11：C++ 11新特性解析与应用 迷你
[C++标准程序库–自修教程与参考手册]
[C++程序设计原理与实践]
[C++程序设计语言 特别版]
[C++编程惯用法——高级程序员常用方法和技巧]
[C++编程规范-101条规则准则与最佳实践]
[C++语言的设计和演化]
[">
<meta property="og:updated_time" content="2016-07-17T14:33:55.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="c++">
<meta name="twitter:description" content="Books
C++FAQS
Junior
(C++11)C++11 - 维基百科，自由的百科全书
(C++11)深入理解C++11：C++ 11新特性解析与应用 迷你
[C++标准程序库–自修教程与参考手册]
[C++程序设计原理与实践]
[C++程序设计语言 特别版]
[C++编程惯用法——高级程序员常用方法和技巧]
[C++编程规范-101条规则准则与最佳实践]
[C++语言的设计和演化]
[">
  
    <link rel="alternate" href="/atom.xml" title="Matrix207&#39;s Blog" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
  

</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Matrix207&#39;s Blog</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="Flux RSS"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Rechercher"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-cplusplus" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2016/03/05/cplusplus/" class="article-date">
  <time datetime="2016-03-04T16:00:00.000Z" itemprop="datePublished">2016-03-05</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/language/">language</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      c++
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="Books"><a href="#Books" class="headerlink" title="Books"></a>Books</h3><ul>
<li><a href="http://www.parashift.com/c++-faq-lite/" target="_blank" rel="external">C++FAQS</a></li>
<li>Junior<ul>
<li><a href="">(C++11)C++11 - 维基百科，自由的百科全书</a></li>
<li><a href="">(C++11)深入理解C++11：C++ 11新特性解析与应用 迷你</a></li>
<li>[C++标准程序库–自修教程与参考手册]</li>
<li>[C++程序设计原理与实践]</li>
<li>[C++程序设计语言 特别版]</li>
<li>[C++编程惯用法——高级程序员常用方法和技巧]</li>
<li>[C++编程规范-101条规则准则与最佳实践]</li>
<li>[C++语言的设计和演化]</li>
<li>[C++释难解惑]</li>
<li>[C和C++安全编码（中文版）]</li>
<li>[Effective C++中文版（第三版）]</li>
<li>[More Effective C++ 中文版]</li>
<li>[[Effective STL中文版：50条有效使用STL的经验]]</li>
<li>[Exceptional C++ Style(Herb Sutter).中文版]</li>
<li>[Exceptional C++ 中文版]</li>
<li>[More Exceptional C++(中文版)]</li>
<li>[From C++ to Objective-C-english]</li>
<li>[From C++ to Objective-C-中文版]</li>
<li>[Linux C编程一站式学习6.14–宋劲衫]</li>
<li>[从缺陷中学习C、C++]</li>
<li>[你必须知道的222个C++语言问题.范立锋.扫描版]</li>
<li>[标准C++库函数参考]</li>
<li>[深入学习：GNU C++ for Linux 编程技术]</li>
<li>[编写高质量代码 改善C++程序的150个建 议.李健.扫描版]</li>
</ul>
</li>
<li>C/C++进阶<ul>
<li>[Accelerated C++中文版 ]</li>
<li>[Advanced c++ Programming Styles and Idioms中文版]</li>
<li>[C++ API设计–英文版]</li>
<li>[C++ Templates中文版]</li>
<li><a href="http://www.cnblogs.com/Solstice/category/287661.html" target="_blank" rel="external">C++ 工程实践经验谈–陈硕</a></li>
<li>[C++ API设计]</li>
<li>[C++代码设计与重用]</li>
<li>[C++标准库——自学教程与参考手册(第2版)英文版]</li>
<li>[C++沉思录(Ruminations on C++)中文第2版]</li>
<li>[C++程序设计]</li>
<li>[C++设计新思维(Modern_C++_Design)]</li>
<li>[大规模C++程序设计]</li>
<li>[模板编程与OO编程范型–混搭]</li>
<li>[深度探索C++对象模型]</li>
<li>[高质量C++／C编程指南]</li>
<li>[Imperfect C++]</li>
<li>[C++ 并发编程指南]</li>
</ul>
</li>
</ul>
<h3 id="Projects"><a href="#Projects" class="headerlink" title="Projects"></a>Projects</h3><ul>
<li>1.<a href="https://github.com/google/leveldb" target="_blank" rel="external">leveldb</a><ul>
<li>Google出品，遵循Google C++编码规范</li>
<li>作者是Jeff Dean大神</li>
<li>涉及查找、缓存、文件读写、多线程、跨平台等诸多常见问题</li>
<li>最新版本1.15.0代码量也不到2万行</li>
<li>基础的key-value数据库，广泛用于Google内部和许多开源项目</li>
</ul>
</li>
<li><a href="http://code.google.com/p/googletest/" target="_blank" rel="external">Google Test</a></li>
<li><a href="https://developers.google.com/protocol-buffers/" target="_blank" rel="external">Protocol Buffers</a></li>
<li>2.<a href="http://www.llvm.org/" target="_blank" rel="external">llvm</a></li>
<li>2.<a href="https://github.com/google/leveldb" target="_blank" rel="external">muduo</a></li>
</ul>
<h3 id="Lambda"><a href="#Lambda" class="headerlink" title="Lambda"></a>Lambda</h3><ul>
<li><a href="http://zh.cppreference.com/w/cpp/language/lambda" target="_blank" rel="external">http://zh.cppreference.com/w/cpp/language/lambda</a></li>
</ul>
<h3 id="resource-manager"><a href="#resource-manager" class="headerlink" title="resource manager"></a>resource manager</h3><ul>
<li><p>Implement ScopeGuard</p>
<ul>
<li><a href="https://en.wikibooks.org/wiki/More_C++_Idioms/Scope_Guard" target="_blank" rel="external">https://en.wikibooks.org/wiki/More_C++_Idioms/Scope_Guard</a></li>
<li><a href="http://mindhacks.cn/2012/08/27/modern-cpp-practices/" target="_blank" rel="external">http://mindhacks.cn/2012/08/27/modern-cpp-practices/</a></li>
</ul>
</li>
<li><p>Sample code:</p>
<pre><code>// TODO: not work
// g++ -o t -std=c++11 c++11.cc
#include &lt;stdio.h&gt;
#include &lt;vector&gt;
#include &lt;iostream&gt;
#include &lt;algorithm&gt;
#include &lt;functional&gt;

#define TT_HERE() {std::cout &lt;&lt; __FUNCTION__ &lt;&lt; &quot;:&quot; &lt;&lt; __LINE__ &lt;&lt; std::endl;}
#define TT_PRINT_MSG(x) {std::cout &lt;&lt; __LINE__ &lt;&lt; &quot;:&quot; &lt;&lt; x &lt;&lt; std::endl;}

class ScopeGuard
{
public:
    explicit ScopeGuard(std::function&lt;void()&gt; onExitScope)
        : onExitScope_(onExitScope), dismissed_(false)
    { }

    ~ScopeGuard()
    {
        TT_HERE();
        if(!dismissed_)
        {
            onExitScope_();
        }
    }

    void Dismiss()
    {
        dismissed_ = true;
    }

private:
    std::function&lt;void()&gt; onExitScope_;
    bool dismissed_;

private: // noncopyable
    ScopeGuard(ScopeGuard const&amp;);
    ScopeGuard&amp; operator=(ScopeGuard const&amp;);
};

#define SCOPEGUARD_LINENAME_CAT(name, line) name##line
#define SCOPEGUARD_LINENAME(name, line) SCOPEGUARD_LINENAME_CAT(name, line)

#define ON_SCOPE_EXIT(callback) ScopeGuard SCOPEGUARD_LINENAME(EXIT, __LINE__)(callback)

class A
{
public:
    A () { TT_HERE(); }
    ~A () { TT_HERE(); }
};

void release()
{
    std::cout &lt;&lt; &quot;do release&quot; &lt;&lt; std::endl;
}

class B
{
public:
    B () {
        TT_HERE();
    }
    ~B () { TT_HERE(); }
    void Fun1() {
        A a;
        std::cout &lt;&lt; &quot;do something in Fun1&quot; &lt;&lt; std::endl;
        std::cout &lt;&lt; &quot;throw exception&quot; &lt;&lt; std::endl;
        throw;
        release;
    }
};

class C
{
public:
    C () {
        TT_HERE();
    }
    ~C () { TT_HERE(); }
    void Fun1() {
        A a;
        ON_SCOPE_EXIT( [&amp;] { release();} );
        std::cout &lt;&lt; &quot;do something in Fun1&quot; &lt;&lt; std::endl;
        std::cout &lt;&lt; &quot;throw exception&quot; &lt;&lt; std::endl;
        throw;
    }
};

void Test1()
{
    std::vector&lt;int&gt; v;
    v.push_back(1);
    v.push_back(2);
    v.push_back(3);

    std::for_each(std::begin(v), std::end(v), [](int n) {std::cout &lt;&lt; n &lt;&lt; std::endl;});

    auto is_odd = [](int n) {return n%2==1;};
    auto pos = std::find_if(std::begin(v), std::end(v), is_odd);
    if(pos != std::end(v))
        std::cout &lt;&lt; *pos &lt;&lt; std::endl;
}

int main()
{
    std::cout &lt;&lt; &quot;------------------------&quot; &lt;&lt; std::endl;
    B b;
    //b.Fun1();
    std::cout &lt;&lt; &quot;------------------------&quot; &lt;&lt; std::endl;
    C c;
    c.Fun1();
    std::cout &lt;&lt; &quot;------------------------&quot; &lt;&lt; std::endl;

    return 0;
}
</code></pre></li>
</ul>
<h3 id="Error-handle"><a href="#Error-handle" class="headerlink" title="Error handle"></a>Error handle</h3><ul>
<li>Target:<ul>
<li>easy to use</li>
<li>more error message</li>
<li>be strong</li>
</ul>
</li>
<li><p>Error information collection</p>
<ul>
<li>information include: error, location and context</li>
<li><p><code>ENSURE(0 &lt;= index &amp;&amp; index &lt; v.size())(index)(v.size());</code></p>
<pre><code>Failed: 0 &lt;= index &amp;&amp; index &lt; v.size()  (error)
File: xxx.cpp Line: 123                 (location)
Context Variables:                      (context)
    index = 12345
    v.size() = 100
</code></pre></li>
<li><p>support multiple express <code>(ENSURE(expr)(var1)(var2)(var3))</code></p>
</li>
<li><code>static_assert(std::is_same&lt;decltype(expr), bool&gt;::value, &quot;ENSURE(expr) can only be used on bool expression&quot;);</code></li>
</ul>
</li>
<li><p>Implementation sample</p>
<pre><code>// Create by matrix207 2016-03-08
// compile: g++ -o t -std=c++0x ensure.cc
// expand macro with : g++ -E -P -std=c++0x ensure.cc
#include &lt;exception&gt;
#include &lt;iostream&gt;
#include &lt;sstream&gt;

class MyException
{
public:
    MyException(const char *exp, const char *file, int line)
        : SMART_ASSERT_A (*this),
          SMART_ASSERT_B (*this)
    {
        std::ostringstream so;
        so &lt;&lt; &quot;Ensure failed : &quot; &lt;&lt; &apos;\n&apos;
           &lt;&lt; &apos;\t&apos; &lt;&lt; &quot;Expression : &quot; &lt;&lt; exp &lt;&lt; &apos;\n&apos;
           &lt;&lt; &apos;\t&apos; &lt;&lt; &quot;Location : &quot; &lt;&lt; file &lt;&lt; &apos;:&apos; &lt;&lt; line &lt;&lt; &apos;\n&apos;;
        m_what += so.str();
    }
    template&lt;typename T&gt;
    MyException&amp; printVariable(const char* name, T v)
    {
        std::ostringstream so;
        so &lt;&lt; &apos;\t&apos; &lt;&lt; name &lt;&lt; &quot; : &quot; &lt;&lt; v &lt;&lt; &apos;\n&apos;;
        m_what += so.str();
        return *this;
    }
    MyException&amp; err(int error)
    {
        std::ostringstream so;
        so &lt;&lt; &apos;\t&apos; &lt;&lt; &quot;Error : &quot; &lt;&lt; error &lt;&lt; &apos;\n&apos;;
        m_what += so.str();
        return *this;
    }
    MyException&amp; msg(const char* msg)
    {
        std::ostringstream so;
        so &lt;&lt; &apos;\t&apos; &lt;&lt; &quot;Message : &quot; &lt;&lt; msg &lt;&lt; &apos;\n&apos;;
        m_what += so.str();
        return *this;
    }
    const char *what() const throw ()
    {
        return m_what.c_str();
    }
    MyException&amp; SMART_ASSERT_A;
    MyException&amp; SMART_ASSERT_B;
private:
    mutable std::string m_what;
};

#define SMART_ASSERT_A(x) SMART_ASSERT_AB(x, B)
#define SMART_ASSERT_B(x) SMART_ASSERT_AB(x, A)
#define SMART_ASSERT_AB(x,next) \
    SMART_ASSERT_A.printVariable(#x,(x)).SMART_ASSERT_ ## next

#define MY_ENSURE(expr) \
    if (expr); else throw MyException(#expr,__FILE__,__LINE__).SMART_ASSERT_A

int main()
{
    try
    {
        int a = 2;
        MY_ENSURE(a &gt; 3)(a).err(10001).msg(&quot;error occur!&quot;);
    }
    catch (const MyException&amp; e)
    {
        std::cout &lt;&lt; &quot;catch exception:\n&quot; &lt;&lt; e.what() &lt;&lt; std::endl;
    }
    return 0;
}
</code></pre></li>
<li><p>test</p>
<pre><code>[dennis@localhost code]$ g++ -g -o t -std=c++0x ensure.cc
[dennis@localhost code]$ ./t
catch exception:
Ensure failed : 
    Expression : a &gt; 3
    Location : ensure.cc:67
    a : 2
    Error : 10001
    Message : error occur!
</code></pre></li>
</ul>
<h3 id="Reference"><a href="#Reference" class="headerlink" title="Reference"></a>Reference</h3><ul>
<li><a href="http://zh.cppreference.com/w/" target="_blank" rel="external">http://zh.cppreference.com/w/</a></li>
<li><a href="https://en.wikibooks.org/wiki/More_C++_Idioms" target="_blank" rel="external">https://en.wikibooks.org/wiki/More_C++_Idioms</a></li>
<li><a href="http://www.drdobbs.com/cpp/enhancing-assertions/184403745" target="_blank" rel="external">Enhancing Assertions</a></li>
<li><a href="http://www.cnblogs.com/cbscan/archive/2012/10/26/2740838.html" target="_blank" rel="external">http://www.cnblogs.com/cbscan/archive/2012/10/26/2740838.html</a></li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2016/03/05/cplusplus/" data-id="ciqqpe1v500eonmpv9fidl67e" class="article-share-link">Partager</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/c/">c++</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2016/03/05/wrong-coding-in-cplusplus/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Récent</strong>
      <div class="article-nav-title">
        
          Wrong coding in c++
        
      </div>
    </a>
  
  
    <a href="/2016/02/21/why-use-json/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Ancien</strong>
      <div class="article-nav-title">why use json</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Catégories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/blog/">blog</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/database/">database</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/english/">english</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/kernel/">kernel</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/language/">language</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/linux/">linux</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/math/">math</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/network/">network</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/others/">others</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/person/">person</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/program/">program</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/source/">source</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/storage/">storage</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/tools/">tools</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/windows/">windows</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Mot-clés</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/FAQ/">FAQ</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/IRC/">IRC</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Translation/">Translation</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/android/">android</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/api/">api</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/assembly/">assembly</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/awk/">awk</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/batch/">batch</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/blog/">blog</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/book/">book</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/c/">c</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/c/">c++</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/cache/">cache</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/crash/">crash</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/database/">database</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/debug/">debug</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/dot/">dot</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/driver/">driver</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/emacs/">emacs</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/exploit/">exploit</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/file-system/">file system</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/filesystem/">filesystem</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/flowchart/">flowchart</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gcc/">gcc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/git/">git</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/google/">google</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/graphviz/">graphviz</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hosts/">hosts</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/iscsi/">iscsi</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/javascript/">javascript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/job/">job</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/json/">json</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/kernel/">kernel</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lisp/">lisp</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lua/">lua</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/makefile/">makefile</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/malloc/">malloc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/math/">math</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/maxima/">maxima</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/memory/">memory</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/memory-overflow/">memory overflow</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mtrace/">mtrace</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/netdisk/">netdisk</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/network/">network</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/others/">others</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/pandoc/">pandoc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/performance/">performance</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/person/">person</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/protobuf/">protobuf</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/python/">python</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/rsync/">rsync</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sed/">sed</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/shell/">shell</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/skype/">skype</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sms/">sms</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/source/">source</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ssh/">ssh</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/stack/">stack</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/storage/">storage</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/study/">study</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/svn/">svn</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sync/">sync</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/test/">test</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/time/">time</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/tools/">tools</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/valgrind/">valgrind</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vi/">vi</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vim/">vim</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/virtual/">virtual</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wget/">wget</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/windows/">windows</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wireshark/">wireshark</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/write/">write</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/xml/">xml</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Nuage de mot-clés</h3>
    <div class="widget tagcloud">
      <a href="/tags/FAQ/" style="font-size: 10px;">FAQ</a> <a href="/tags/IRC/" style="font-size: 10px;">IRC</a> <a href="/tags/Translation/" style="font-size: 13px;">Translation</a> <a href="/tags/android/" style="font-size: 10px;">android</a> <a href="/tags/api/" style="font-size: 10px;">api</a> <a href="/tags/assembly/" style="font-size: 10px;">assembly</a> <a href="/tags/awk/" style="font-size: 11px;">awk</a> <a href="/tags/batch/" style="font-size: 14px;">batch</a> <a href="/tags/blog/" style="font-size: 10px;">blog</a> <a href="/tags/book/" style="font-size: 10px;">book</a> <a href="/tags/c/" style="font-size: 16px;">c</a> <a href="/tags/c/" style="font-size: 19px;">c++</a> <a href="/tags/cache/" style="font-size: 10px;">cache</a> <a href="/tags/crash/" style="font-size: 10px;">crash</a> <a href="/tags/database/" style="font-size: 17px;">database</a> <a href="/tags/debug/" style="font-size: 12px;">debug</a> <a href="/tags/dot/" style="font-size: 10px;">dot</a> <a href="/tags/driver/" style="font-size: 10px;">driver</a> <a href="/tags/emacs/" style="font-size: 11px;">emacs</a> <a href="/tags/exploit/" style="font-size: 10px;">exploit</a> <a href="/tags/file-system/" style="font-size: 10px;">file system</a> <a href="/tags/filesystem/" style="font-size: 12px;">filesystem</a> <a href="/tags/flowchart/" style="font-size: 10px;">flowchart</a> <a href="/tags/gcc/" style="font-size: 10px;">gcc</a> <a href="/tags/git/" style="font-size: 12px;">git</a> <a href="/tags/google/" style="font-size: 11px;">google</a> <a href="/tags/graphviz/" style="font-size: 11px;">graphviz</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/hosts/" style="font-size: 10px;">hosts</a> <a href="/tags/iscsi/" style="font-size: 14px;">iscsi</a> <a href="/tags/java/" style="font-size: 10px;">java</a> <a href="/tags/javascript/" style="font-size: 10px;">javascript</a> <a href="/tags/job/" style="font-size: 10px;">job</a> <a href="/tags/json/" style="font-size: 10px;">json</a> <a href="/tags/kernel/" style="font-size: 14px;">kernel</a> <a href="/tags/linux/" style="font-size: 14px;">linux</a> <a href="/tags/lisp/" style="font-size: 10px;">lisp</a> <a href="/tags/lua/" style="font-size: 10px;">lua</a> <a href="/tags/makefile/" style="font-size: 10px;">makefile</a> <a href="/tags/malloc/" style="font-size: 10px;">malloc</a> <a href="/tags/math/" style="font-size: 11px;">math</a> <a href="/tags/maxima/" style="font-size: 10px;">maxima</a> <a href="/tags/memory/" style="font-size: 11px;">memory</a> <a href="/tags/memory-overflow/" style="font-size: 10px;">memory overflow</a> <a href="/tags/mtrace/" style="font-size: 10px;">mtrace</a> <a href="/tags/netdisk/" style="font-size: 10px;">netdisk</a> <a href="/tags/network/" style="font-size: 20px;">network</a> <a href="/tags/others/" style="font-size: 18px;">others</a> <a href="/tags/pandoc/" style="font-size: 10px;">pandoc</a> <a href="/tags/performance/" style="font-size: 16px;">performance</a> <a href="/tags/person/" style="font-size: 11px;">person</a> <a href="/tags/protobuf/" style="font-size: 11px;">protobuf</a> <a href="/tags/python/" style="font-size: 10px;">python</a> <a href="/tags/rsync/" style="font-size: 10px;">rsync</a> <a href="/tags/sed/" style="font-size: 11px;">sed</a> <a href="/tags/shell/" style="font-size: 15px;">shell</a> <a href="/tags/skype/" style="font-size: 11px;">skype</a> <a href="/tags/sms/" style="font-size: 10px;">sms</a> <a href="/tags/source/" style="font-size: 11px;">source</a> <a href="/tags/ssh/" style="font-size: 10px;">ssh</a> <a href="/tags/stack/" style="font-size: 10px;">stack</a> <a href="/tags/storage/" style="font-size: 15px;">storage</a> <a href="/tags/study/" style="font-size: 10px;">study</a> <a href="/tags/svn/" style="font-size: 11px;">svn</a> <a href="/tags/sync/" style="font-size: 10px;">sync</a> <a href="/tags/test/" style="font-size: 11px;">test</a> <a href="/tags/time/" style="font-size: 10px;">time</a> <a href="/tags/tools/" style="font-size: 16px;">tools</a> <a href="/tags/valgrind/" style="font-size: 10px;">valgrind</a> <a href="/tags/vi/" style="font-size: 10px;">vi</a> <a href="/tags/vim/" style="font-size: 14px;">vim</a> <a href="/tags/virtual/" style="font-size: 11px;">virtual</a> <a href="/tags/wget/" style="font-size: 10px;">wget</a> <a href="/tags/windows/" style="font-size: 11px;">windows</a> <a href="/tags/wireshark/" style="font-size: 10px;">wireshark</a> <a href="/tags/write/" style="font-size: 13px;">write</a> <a href="/tags/xml/" style="font-size: 10px;">xml</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/">July 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/">April 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">March 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">February 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">January 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">November 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/10/">October 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">September 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/08/">August 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/07/">July 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/06/">June 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/03/">March 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/02/">February 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/01/">January 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/12/">December 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/11/">November 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/09/">September 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/08/">August 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/07/">July 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/06/">June 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/05/">May 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/04/">April 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/03/">March 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/11/">November 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/10/">October 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/09/">September 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/08/">August 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/07/">July 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/06/">June 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/05/">May 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/04/">April 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/03/">March 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/02/">February 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/01/">January 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/12/">December 2012</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/09/">September 2012</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Articles récents</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2016/07/17/how-to-implement-malloc/">如何实现一个malloc</a>
          </li>
        
          <li>
            <a href="/2016/07/17/study-grep-more/">grep工作原理</a>
          </li>
        
          <li>
            <a href="/2016/07/17/2016-04-13-malloc/">malloc</a>
          </li>
        
          <li>
            <a href="/2016/04/27/include-what-you-use/">使用IWYU整理头文件引用</a>
          </li>
        
          <li>
            <a href="/2016/04/24/understand-gcc-assembly-output/">understand gcc assembly output</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2016 Matrix207<br>
      Propulsé by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>

  </div>
</body>
</html>